<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2018/7/12
 * Time: 10:08
 */

namespace app\admin\validate;


use think\Validate;

class GoodsValidate extends Validate
{

    protected $rule = [
        'goods_name' => 'require|unique:goods',
    ];

    protected $message = [
        'goods_name.require' => '商品名称不能为空',
        'goods_name.unique' => '商品名必须唯一',
    ];

}